package com.gzk.oeno.ihm.vin.form;

import com.gzk.oeno.business.typevin.TypeVin;
import com.gzk.oeno.business.typevin.TypeVinManager;
import com.gzk.oeno.ihm.common.SimpleNameForm;
import com.gzk.utils.CustomException;

public class TypeVinForm extends SimpleNameForm<Integer, TypeVin>{
	public TypeVinForm() {
		super(TypeVinManager.getInstance());
	}


	@Override
	protected TypeVin fromForm() throws CustomException {
		TypeVin type = original != null ? original : new TypeVin();
		type.setName(getNameField().getText());
		return type;
	}

}
